import request from '@/utils/request.js'

//获取当前教师的班级
export const findClassroomByTeacherId=()=>{
   return request.get('/teacher/findGradeByTeacherId')
}

//创建班级
export const insterClass=(className)=>{
   return request.post('/teacher/createClassroom?className='+className)
}

//删除班级
export const deleteClass=(classId)=>{
   return request.delete('/teacher/deleteClassroom/'+classId)
}


//修改班级
export const updateClass=(classId,className)=>{
   return request.put('/teacher/updateClassroom?classId='+classId+'&className='+className)
}

//查询班级
export const findClassroomByClassId=(classId)=>{
   return request.get('/teacher/findClassroomBysearch?className='+classId)
}